(function() {

    var
    $u = juliet.using({
        ValidationManager : 'juliet.validation.ValidationManager-0.2'
    }),
    $ = juliet.jQuery;

    function initialize() {
        var manager = juliet.createObject($u('ValidationManager'), [
            { fieldSelector : '#login', validators : [
                { name : 'NotEmpty' }
            ] }
        ]);

        $('#submit').click(function() {
            manager.validate();
            logger.log(manager.getResult());
            return false;
        });
    }

    $(document).ready(function() {
        initialize();
    });

})();
